﻿<layout:LayoutableUserControl
    x:Class="AppDemo.Views.Recherches"
    xmlns:layout="using:LayoutHelpers"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppDemo.Views"
    xmlns:loc="using:AppDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="690"
    d:DesignWidth="1045">
    <layout:LayoutableUserControl.Resources>
        <loc:ExplorerViewProperties x:Key="ExplorerViewProperties"/>
    </layout:LayoutableUserControl.Resources>
    <layout:LayoutableUserControl.LayoutRules>

        <!--These use basic built-in rules. DisplayName is optional but can help with readability / debugging-->
        <layout:WidthUpdatePropertyRule DisplayName="Hide for WP" Width="768" ComparisonType="LessThan" Name="ExplorerViewProperties" Property="ShowAdvanced" Value="Collapsed" ValueIfFalse="Visible" />

    </layout:LayoutableUserControl.LayoutRules>
    <Grid>
        <ScrollViewer>
            <Grid Background="{StaticResource LightGreyBrush}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="50"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="50"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="50"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid x:Name="recherche" Visibility="{Binding ShowAdvanced, Source={StaticResource ExplorerViewProperties}}" Background="{StaticResource LightGreyBrush}">
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="RECHERCHER" VerticalAlignment="Center" FontFamily="Segoe WP Light" FontSize="32" Margin="12,0,0,0" Foreground="Black"/>
                </Grid>
                <Grid Height="50" Margin="12" Grid.Row="1" Width="500" HorizontalAlignment="Right">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="62"/>
                    </Grid.ColumnDefinitions>
                    <TextBox x:Name="textBox" Margin="0" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}"/>
                    <Grid Grid.Column="1" Background="{StaticResource DarkGreyBrush}" Margin="12,0,0,0">
                        <Image x:Name="Assets_Assets_icoSuppr_png" Source="ms-appx:///Assets/Assets_icoSuppr.png" Margin="10"/>
                    </Grid>
                </Grid>
                <Grid x:Name="filtrer" Background="{StaticResource LightGreyBrush}" Grid.Row="2">
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="FILTRER" VerticalAlignment="Center" FontFamily="Segoe WP Light" FontSize="32" Margin="12,0,0,0" Foreground="Black"/>
                </Grid>
                <Grid Grid.Row="3" Background="White">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <VariableSizedWrapGrid Margin="12" Orientation="Horizontal" ItemWidth="350">
                        <Grid Margin="0,0,24,12">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock30" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par thèmes" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Foreground="Black"/>
                            <TextBox x:Name="textBox1" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="1" Text="Design" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                        <Grid Margin="0,0,24,12">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock2" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par Intervenant" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Grid.Row="2" Foreground="Black"/>
                            <TextBox x:Name="textBox5" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="3" Text="Nathalie Belval" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                        <Grid Margin="0,0,24,12">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock6" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par Jour" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Grid.Row="4" Foreground="Black"/>
                            <TextBox x:Name="textBox9" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="5" Text="Mardi" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                        <Grid Margin="0,0,24,12" Visibility="{Binding ShowAdvanced, Source={StaticResource ExplorerViewProperties}}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par Produit" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Foreground="Black"/>
                            <TextBox x:Name="textBox2" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="1" Text="Xbox" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                        <Grid Margin="0,0,24,12" Visibility="{Binding ShowAdvanced, Source={StaticResource ExplorerViewProperties}}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock3" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par Audience" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Grid.Row="2" Foreground="Black"/>
                            <TextBox x:Name="textBox3" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="3" Text="Développeurs" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                        <Grid Margin="0,0,24,12" Visibility="{Binding ShowAdvanced, Source={StaticResource ExplorerViewProperties}}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock x:Name="textBlock4" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Par Parcours" VerticalAlignment="Top" FontFamily="Segoe WP SemiLight" FontSize="26.667" Grid.Row="4" Foreground="Black"/>
                            <TextBox x:Name="textBox4" Margin="0,0,0,12" TextWrapping="Wrap" VerticalAlignment="Stretch" Background="White" BorderBrush="{StaticResource TechdaysPinkBrush}" Grid.Row="5" Text="Tous les parcours" Foreground="{StaticResource LightGreyBrush}" FontFamily="Segoe WP Light"/>
                        </Grid>
                    </VariableSizedWrapGrid>
                    <Button x:Name="button" Visibility="{Binding ShowAdvanced, Source={StaticResource ExplorerViewProperties}}" Margin="12,0,12,24" Content="Annuler Les filtres" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Row="1" Background="{StaticResource BrushBlueButton}" BorderBrush="{StaticResource BrushBlueButton}" Foreground="White"/>
                </Grid>
                <Grid x:Name="separator_Copy" Grid.Row="3" Height="8" VerticalAlignment="Bottom" Background="#FFD1D1D1"/>
                <Grid x:Name="resultats" Background="{StaticResource LightGreyBrush}" Grid.Row="4" Margin="0,12,0,0">
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="RESULTATS" VerticalAlignment="Center" FontFamily="Segoe WP Light" FontSize="32" Margin="12,0,0,0" Foreground="Black"/>
                </Grid>
                <local:Sessions Grid.Row="5"/>
            </Grid>
        </ScrollViewer>
    </Grid>
</layout:LayoutableUserControl>
